package chainOfResponsibility;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class Chief extends Handler{
    private String name;
    @Override
    void handleHoliday(HolidayRequest holidayRequest) {
        if (holidayRequest.getCount()<=3){
            System.out.println(name+"科长进行进行了审批");
        }else {
            next.handleHoliday(holidayRequest);
        }

    }
}
